package info.ask4research.dao;

import java.util.List;

import info.ask4research.dao.core.AbstractDao;
import info.ask4research.model.addons.Addon;
import info.ask4research.model.addons.Addons;
import info.ask4research.model.addons.MultipleChoice;
import info.ask4research.model.addons.QuestionsAndAnswers;
import info.ask4research.model.addons.TextWork;
import info.ask4research.model.addons.UploadingFiles;

public interface IAddonDAO extends AbstractDao<Addon> {

	boolean textWorkExists(String text, Integer unitOfLearningId);

	List<TextWork> getTextWorkAddonByUoL(int id);

	boolean uploadingFilesExists(String text, Integer unitOfLearningId);

	List<UploadingFiles> getUploadingFilesAddonByUoL(int id);

	List<QuestionsAndAnswers> getQuestionsAnswersAddonByUoL(int id);

	List<MultipleChoice> getMcTestAddonByUoL(int id);

	boolean qnrExists(String text, Integer unitOfLearningId);

	Addon getById(Integer qnrId);

	boolean mctExists(String text, Integer attribute);

	boolean addonNameExists(String stringAddon, Integer uoLId);

	Addon getAddonByUoFandRoleName(String stringAddon, Integer uoLId);

	public List<Addon> getAddonsByUoL(int id);
}
